MailPoet\Newsletter\NewslettersRepository S

Total Complexity 41
Dependencies 26
Dependents 44
Total lines 632
Lines of code 488
Logical lines of code 128
Comment lines 68
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
bulkDelete()
A
36 3 96
getAnalytics()
S
43 3 48
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 30
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedTask()
S
58 1 17
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findDraftByTypes()
S
61 1 14
findActiveByTypes()
S
61 1 14
getStandardNewsletterList()
S
62 1 13
getCountForStatusAndTypes()
S
62 1 13
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
setAsCorrupt()
S
74 1 5
__construct()
S
73 1 5
getCorruptNewsletters()
S
78 1 3
getEntityClassName()
S
82 1 3
fetchChildrenIds()
S
67 1 8